import request from '@/utils/request'

// 查询监测配置列表
export function listConfig(query) {
  return request({
    url: '/monitor/config/list',
    method: 'get',
    params: query
  })
}

// 查询监测配置详细
export function getConfig(monitorConfigId) {
  return request({
    url: '/monitor/config/' + monitorConfigId,
    method: 'get'
  })
}

// 新增监测配置
export function addConfig(data) {
  return request({
    url: '/monitor/config',
    method: 'post',
    data: data
  })
}

// 修改监测配置
export function updateConfig(data) {
  return request({
    url: '/monitor/config',
    method: 'put',
    data: data
  })
}

// 删除监测配置
export function delConfig(monitorConfigId) {
  return request({
    url: '/monitor/config/' + monitorConfigId,
    method: 'delete'
  })
}
